import Cookies from 'js-cookie'

const TokenKey = 'JSESSIONID=243B3773F9DE74E2BDA614EB1572F911; jsessionid=243B3773F9DE74E2BDA614EB1572F911'
const UserInfo = 'USER-INFO'
const CookieTime = 'COOKIE-TIME'

//用户token
export function getToken() {
    return Cookies.get(TokenKey)
}

export function setToken(token) {
    return Cookies.set(TokenKey, token, {expires: 1})
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}

